#include <stdio.h>

int max_num(int a, int b, int c);

int main(void)
{
    printf("%d\n", max_num(3, 6, 7));
    printf("%d\n", max_num(3, 10, 14));
    printf("%d\n", max_num(4, 20, 1));
    printf("%d\n", max_num(7, 22, 123));
    return 0;
}


int max_num(int a, int b, int c)
{
    return (a > b ? a : b) > c ? (a > b ? a : b) : c;
}
